package com.pzhyd.sc.entity;

import java.util.HashSet;
import java.util.Set;

/**
 * Roleinfo entity. @author MyEclipse Persistence Tools
 */

public class Roleinfo implements java.io.Serializable {

	// Fields

	private int rid;
	private int rparentId;
	private String rname;
	private Set rminfos = new HashSet(0);
	private Set usersInfos = new HashSet(0);

	// Constructors

	/** default constructor */
	public Roleinfo() {
	}

	/** minimal constructor */
	public Roleinfo(int rparentId, String rname) {
		this.rparentId = rparentId;
		this.rname = rname;
	}

	/** full constructor */
	public Roleinfo(int rparentId, String rname, Set rminfos, Set usersInfos) {
		this.rparentId = rparentId;
		this.rname = rname;
		this.rminfos = rminfos;
		this.usersInfos = usersInfos;
	}

	// Property accessors

	public int getRid() {
		return this.rid;
	}

	public void setRid(int rid) {
		this.rid = rid;
	}

	public int getRparentId() {
		return this.rparentId;
	}

	public void setRparentId(int rparentId) {
		this.rparentId = rparentId;
	}

	public String getRname() {
		return this.rname;
	}

	public void setRname(String rname) {
		this.rname = rname;
	}

	public Set getRminfos() {
		return this.rminfos;
	}

	public void setRminfos(Set rminfos) {
		this.rminfos = rminfos;
	}

	public Set getUsersInfos() {
		return this.usersInfos;
	}

	public void setUsersInfos(Set usersInfos) {
		this.usersInfos = usersInfos;
	}

}